package com.example.studentmanagement2.service;

import com.example.studentmanagement2.model.Course;
import java.util.List;
import java.util.Optional;

public interface CourseService {
    List<Course> getAllCourses();
    Optional<Course> getCourseById(String courseId);
    Course addCourse(Course course);
    Course updateCourse(String originalCourseId,Course course);
    void deleteCourse(String courseId);

    List<Course> searchCourses(String keyword);
}